import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 场站列表
export function getProtocolIec104(message) {

  const params = {
    'message': message
  }
  return request({
    url: '/system/point-parser/iec104',
    method: 'post',
    data: params
  })
}

export function getProtocolMqtt(topic, message) {
  const params = {
    'topic': topic,
    'message': message
  }
  return request({
    url: '/system/point-parser/mqtt',
    method: 'post',
    data: params
  })
}


export function getProtocoliIec104v2(dataset,message) {
  const params = {
    'dataset': dataset,
    'message': message
  }
  return request({
    url: '/system/point-parser/iec104v2',
    method: 'post',
    data: params
  })
}

